package com.asohofrucol.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;


import com.asohofrucol.model.FormField;

public interface FormFieldDao extends JpaRepository<FormField, Long> {
	
	@Query("SELECT p FROM FormField p WHERE p.form.id = :formId")
	public List<FormField> listByForm(
			@Param("formId") Long formId);

}
